﻿using GiaSu.DataAccess.Entity;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GiaSu.DataAccess.DataContext
{
    public class DataContext : DbContext
    {
        public DataContext()
            : base("MyConnectionString") 
        {
            //Database.SetInitializer<DataContext>(new DropCreateDatabaseAlways<DataContext>());
        }
        public DbSet<Grade> Grades { get; set; }
        public DbSet<Parent> Parents { get; set; }
        public DbSet<Subject> Subjects { get; set; }
        public DbSet<Teacher> Teachers { get; set; }
    }
}
